#include once "Mcs51.bi"
declare sub info(byval u as any ptr)
dim shared as  Mcs51 cpu
dim as string hexname,mode
hexname = command(2) 'hexfile name'
mode  = command(1) 'debug or just run'
print hexname ,mode
if mode ="-d" then
  cpu.mode = 1
else
  cpu.mode = 0
end if
if len(hexname) =0 then
  hexname ="../kill/test.hex"
end if
cpu.loadhex(hexname)
cpu.calc()
